package com.yima.baseproj.module.sys.parent;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yima.baseproj.module.sys.kindergarten.KindergartenEntity;
import com.yima.baseproj.module.sys.parent.model.ParentSelectModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;
import java.util.Map;

@Mapper
public interface ParentMapper extends BaseMapper<ParentEntity> {

    /**
     * 分页+模糊查询
     * @param page
     * @param searchVo
     * @return
     */
    Page<Map> findBySearchVo(@Param("page")Page page, @Param("searchVo") ParentEntity searchVo);

    List<Map> findBySearchVo(@Param("searchVo") KindergartenEntity searchVo);

    ParentSelectModel findById(int id);
    ParentSelectModel findStuById(int id);
}
